{extend name="admin@public/base_content" /}
{block name="body">}
<body>
{include file="admin@public/common" /}
<div class="layui-form">
    <table class="layui-table lay-even">
        <thead>
        <tr>
            <th>ID</th>
            {foreach name="tableTh" item="vo"}
            <th>{$vo}</th>
            {/foreach}
            <th width="240">操作</th>
        </tr>
        </thead>
        <tbody>
        {foreach name="list" item="vo"}
        <tr>
            <td>{$vo.data_id}</td>
            {foreach name="fieldList" item="val"}
            {eq name="val.show" value="1"}
            <td>{php}echo model('kbcms/FieldData')->showListField($vo[$val['field']],$val['type'],$val['config']);{/php}</td>
            {/eq}
            {/foreach}
            <td>
                <a href="{:url('info',array('data_id'=>$vo['data_id'],'fieldset_id'=>$formInfo['fieldset_id']))}" class="layui-btn layui-btn-mini modal-catch">
                    <i class="iconfont">&#xe653;</i>编辑
                </a>
                <a class="layui-btn layui-btn-mini layui-btn-danger ajax"
                   data-list='{"key":"id={$vo.data_id}","msg":true,"render":"true","action":"del"}'
                   data-params='{"url": "{:url("del",array("fieldset_id"=>$formInfo["fieldset_id"]))}","confirm":"true","data":"id={$vo.data_id}","complete":"del"}'>
                    <i class="iconfont">&#xe626;</i>删除
                </a>

            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
</div>
</body>
{/block}
{block name="script"}
<script>
    layui.use('default');
</script>
{/block}